package com.mdl.springmvc.ioStream.po;

import java.io.Serializable;

/**
 * @Desc
 * @Author madengling
 * @Time 2021/1/8 16:37
 */
public class Student implements Serializable {
    private String name;
    private String pwd;
    public transient int age; // transient瞬态修饰成员,不会被序列化

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }
}
